package com.zsp.comic.service;

import com.zsp.comic.entity.Friend;

import java.util.List;

/**
 * @author gan
 * @create 2021-01-16 20:00
 */
public interface FriendService {
    List<Friend> getAllFriend();

    Friend getFriendById(Integer id);

    List<Friend> getFriendByName(String name);

    List<Friend> getAllFriendWithAdminAuthority();

    Friend getFriendByIdWithAdminAuthority(Integer id);

    List<Friend> getFriendByNameWithAdminAuthority(String name);

    boolean addFriend(Friend friend);

    boolean updateFriend(Friend friend);

    boolean deleteFriend(Integer id);
}
